/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entidades;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

/**
 *
 * @author Gatoper
 */
@Entity
@DiscriminatorValue("Owner")
public class Owner extends Person {

    public Owner(String name, String lasname, String ssn, String birthday, String birthplace) {
        super(name, lasname, ssn, birthday, birthplace);
    }

      
    public Owner() {
        super();
    }
    @OneToMany(mappedBy="Owner")
    private List<Pet> pet=new ArrayList<>();

    public List<Pet> getPet() {
        return pet;
    }

    public void setPet(List<Pet> pet) {
        this.pet = pet;
    }
    
}
